import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store';
import "babel-polyfill";

//
// import Vuex from 'vuex'
// import util from './common/util'
// Vue.use(util);
// Vue.use(Vuex);

Vue.prototype.$ajax = axios;
window.moment = require('moment');

import './config/element-ui.js'
import './config/vue-prototype.js'
import './config/page'
import './config/crumbsbar'
import './config/ui.js'
import './oauth.js'


// 是否开启 MOCK 模拟数据
console.log(process.env);
process.env.MOCK && require('./mock');

Vue.config.productionTip = false;
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
});//.$mount('#app');
